package jrain.fw.core.dao;

import java.util.Map;

import jrain.fw.core.dao.bean.SqlBean;

 
/**
 * <pre>
 * 作者：489088214@qq.com 
 * 描述： SQL解析器
 * </pre>
 */
public interface SqlParser {

	public SqlBean generateInsert(String namespace, String statement, Map<String, Object> paramData);

	public SqlBean generateInsert(Map<String,Object> sqlCfg, Map<String, Object> paramData);

	public SqlBean generateUpdate(String namespace, String statement, Map<String, Object> paramData);

	public SqlBean generateUpdate(Map<String,Object> sqlCfg, Map<String, Object> paramData);

	public SqlBean generateDelete(String namespace, String statement, Map<String, Object> paramData);
	
	public SqlBean generateDelete(Map<String,Object> sqlCfg, Map<String, Object> paramData);

	public SqlBean generateQuery(String namespace, String statement, Map<String, Object> paramData);
	
	public SqlBean generateQuery(Map<String,Object> sqlCfg, Map<String, Object> paramData);

	public String generateCountSql(String sql);

	public String generatePageSql(String sql, long startRow, int pageSize);

}
